<div class="page-container">
	<h1 class="header"><i><?php echo $this->album->title ?></i></h1>
	<div class="content">
		<?php if (count($this->photos) <= 0): ?>
			Фотографий в фотоальбоме еще нет.
		<?php else: ?>
			<div class="photo-list yoxview-thumbnails">
			<?php foreach($this->photos as $photo): ?>
			<a href="<?php echo $photo->url ?>">
				<img src="<?php echo $photo->url ?>" height="100" alt="<?php echo $photo->description ?>" title="<?php echo $photo->description ?>"/>
			</a>
			<?php endforeach; ?>
			</div>
		<?php endif; ?>
	</div>
	<div class="info-block">
		<b>Фотоальбом создан:</b><?php
	                $date = new Zend_Date($this->album->created, false, Pidguin_Application::getInstance()->getLocale());
					echo $date->toString(' d MMMM YYYYг.');
	            ?>
	</div>
</div>
<script>
$('.photo-list').yoxview({
	autoHideInfo: false,
	autoHideMenu: true,
	renderButtons: true,
	renderInfo: true,
	renderMenu: false,
	renderInfoPin: false,
	playDelay: 6000,
	popupResizeTime: 500,
	showButtonsOnOpen: true,
	showBarsOnOpen: true
});
</script>